package com.bawei.network

import com.blankj.utilcode.util.SPUtils
import okhttp3.Interceptor
import okhttp3.Response

/**
 * @author ZhangRuiPeng
 * @description:
 */
class TokenInterceptor : Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        var request = chain.request()
        var builder = request.newBuilder()
        builder.header("token",SPUtils.getInstance().getString("token",""))
        return chain.proceed(builder.build())
    }





















}